package com.niiwoo.civet.mobile.vo.response.loan;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by lujing on 2017/11/13.
 */
@Getter
@Setter
@ApiModel("借款详情确认响应")
public class SpeedLoanDetailResponseVO {

    @ApiModelProperty(value = "申请金额",required = true)
    private BigDecimal applicationAmount;

    @ApiModelProperty(value = "前期服务费",required = true)
    private ProphaseServiceFee prophaseServiceFee;

    @ApiModelProperty(value = "最终借款金额",required = true)
    private BigDecimal finalLoanAmount;

    @ApiModelProperty(value = "借款期限",required = true)
    private int termLoan;

    @ApiModelProperty(value = "还款方式",required = true)
    private int repaymentWay;

    @ApiModelProperty(value = "还款总额",required = true)
    private TotalRepayments totalRepayments;



    @Setter
    @Getter
    @ApiModel("前期服务费")
    public static class ProphaseServiceFee implements Serializable{
        private static final long serialVersionUID = -5892744999760033237L;

        @ApiModelProperty(value = "平台服务费",required = true)
        private BigDecimal platformServiceFee;
        @ApiModelProperty(value = "担保服务费",required = true)
        private BigDecimal guaranteeServiceFee;

    }

    @Setter
    @Getter
    @ApiModel("平台服务费")
    public static class PlatformServiceFee implements Serializable{
        private static final long serialVersionUID = -7483271234664320573L;

        @ApiModelProperty(value = "账户管理费用",required = true)
        private BigDecimal AccountManagementFee;
        @ApiModelProperty(value = "人工服务费用",required = true)
        private BigDecimal peopleServiceFee;


    }

    @Getter
    @Setter
    @ApiModel("还款总额")
    public static class TotalRepayments implements Serializable{
        private static final long serialVersionUID = -3717056918419210514L;

        @ApiModelProperty(value = "前期服务费",required = true)
        private ProphaseServiceFee prophaseServiceFee;

        @ApiModelProperty(value = "平台服务费",required = true)
        private PlatformServiceFee platformServiceFee;

        @ApiModelProperty(value = "借款利息",required = true)
        private BigDecimal loanInterest;

    }


}
